<template>
  <div class="list">
    <!-- <div class="pager-title">{{$route.meta.title}}</div> -->
    <valid ref="valid"></valid>
  </div>
</template>
<script>
import valid from './components/valid'
import history from './components/history'
export default {
  name: 'list-alive',
  components: {
    valid,
    history
  },
  data() {
    return {
      activeName: 'history',
    }
  },
  filters: {
    // 截取当前数据到小数点后两位
    numFilter(value) {
      const realVal = parseFloat(value).toFixed(2);
      return realVal;
    }
  },
  methods: {
    handleClick() {
      this.$refs[this.activeName].fetchData()
    }
  }
}
</script>
